package com.javaframe.role.web;


import java.sql.Timestamp;

import org.springframework.stereotype.Controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;




@Controller
public class SystemController {

	@RequestMapping(method=RequestMethod.POST, value="/serverCurTime/fetch/{id}")
	public @ResponseBody Timestamp serverCurTime(@PathVariable String id) {
		 Timestamp t=new Timestamp(System.currentTimeMillis());
		 return t;
	}
}
